package com.byref.liteflowdemo.cmp.interdemo;

import com.yomahub.liteflow.core.NodeIteratorComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Iterator;
import java.util.stream.Stream;

/**
 * @author BYREF
 */
@Component("iterator")
@Slf4j
public class IteratorCmp extends NodeIteratorComponent {
    @Override
    public Iterator<String> processIterator() throws Exception {
        return Stream.of("byref", "user").iterator();
    }
}
